package com.lantosec.hmrp.modules.eval.vo;

import com.lantosec.hmrp.modules.eval.entity.EvalItem;
import com.lantosec.hmrp.core.mvc.BaseVO;
import com.lantosec.hmrp.modules.eval.entity.EvalTaskEvent;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 考评项目定义 VO对象
 * </p>
 *
 * @author AutoCode
 * @since 2020-03-13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="EvalItem对象", description="考评项目定义")
public class EvalItemVO extends BaseVO<EvalItem> {
    private static final long serialVersionUID = 1L;


    public EvalItemVO(EvalItem entity){
        this.evalItemId = entity.getEvalItemId();
        this.evalTypeId = entity.getEvalTypeId();
        this.evalItemName = entity.getEvalItemName();
        this.applyFlag = entity.getApplyFlag();
        this.evalItemContent = entity.getEvalItemContent();
        this.standard = entity.getStandard();
        this.remark = entity.getRemark();
        this.rewardOrientation = entity.getRewardOrientation();
        this.rewardType = entity.getRewardType();
        this.rewardUpLimit = entity.getRewardUpLimit();
        this.rewardLowLimit = entity.getRewardLowLimit();
        this.rewardStandard = entity.getRewardStandard();
        this.evalTarget = entity.getEvalTarget();
        this.evalItemOrder = entity.getEvalItemOrder();
    }

    @Override
    public EvalItem convertToEntity(){
        return new EvalItem(this);
    }


    @ApiModelProperty(value = "考评项目ID")
    private String evalItemId;

    @ApiModelProperty(value = "所属考评分类ID")
    private String evalTypeId;

    @ApiModelProperty(value = "考评项目名称")
    private String evalItemName;

    @ApiModelProperty(value = "是否申报项目(0否 1是)")
    private Integer applyFlag;

    @ApiModelProperty(value = "考评项目内容")
    private String evalItemContent;

    @ApiModelProperty(value = "考评标准")
    private String standard;

    @ApiModelProperty(value = "考评说明")
    private String remark;

    @ApiModelProperty(value = "考评奖惩方向(1分2钱)")
    private Integer rewardOrientation;

    @ApiModelProperty(value = "考评奖惩形式(1分2钱)")
    private Integer rewardType;

    @ApiModelProperty(value = "考评奖惩上限")
    private BigDecimal rewardUpLimit;

    @ApiModelProperty(value = "考评奖惩下限")
    private BigDecimal rewardLowLimit;

    @ApiModelProperty(value = "考评奖惩标准")
    private BigDecimal rewardStandard;

    @ApiModelProperty(value = "考评对象,1科室2人员")
    private Integer evalTarget;

    @ApiModelProperty(value = "排序")
    private Integer evalItemOrder;
    @ApiModelProperty(value = "考评项目分类名称")
    private String evalTypeName;
    @ApiModelProperty(value = "考评任务明细ID")
    private Integer evalTaskDetailedId;
    @ApiModelProperty(value = "考评项目得分")
    private BigDecimal itemScore;
    @ApiModelProperty(value = "考评项目奖惩总金额")
    private BigDecimal itemMoney;
    @ApiModelProperty(value = "考评项目事件得分")
    private BigDecimal rewardValue;
    private String evalDate;
}

